export const device = uni.getSystemInfoSync();
// 0待支付1待派单2已派单3初稿4修改1,5修改2,6修改3,7修改4,8降重,9定稿,10退单
export const orderStatusArr = [{
  value: 0,
  label: '待支付'
}, {
  value: 1,
  label: '待派单'
}, {
  value: 2,
  label: '已派单'
}, {
  value: 3,
  label: '初稿'
}, {
  value: 4,
  label: '修改1'
}, {
  value: 5,
  label: '修改2'
}, {
  value: 6,
  label: '修改3'
}, {
  value: 7,
  label: '修改4'
}, {
  value: 8,
  label: '降重'
}, {
  value: 9,
  label: '定稿'
}, {
  value: 10,
  label: '退单'
}]
export const financeOrderStatus = [{
  value: 1,
  label: '定金',
  color: 'rgba(0, 77, 255, 1)'
}, {
  value: 2,
  label: '初稿',
  color: 'rgba(0, 255, 13, 1)'
}, {
  value: 3,
  label: '定稿',
  color: 'rgba(250, 177, 76, 1)'
}]
export const numberToChinese = {
  1: "一",
  2: "二",
  3: "三",
  4: "四",
  5: "五",
  6: "六",
  7: "七",
  8: "八",
  9: "九",
  0: "零"
};
export const convertToChinese = (num) => {
  const numStr = num.toString(); // 将数字转换为字符串
  let result = "";

  for (let i = 0; i < numStr.length; i++) {
    const digit = parseInt(numStr[i], 10); // 获取当前数字
    result += numberToChinese[digit]; // 将当前数字转换为中文数字并拼接到结果中
  }

  return result;
}

// 订单状态状态0待支付1待派单2已派单3初稿4修改1,5修改2,6修改3,7修改4,8降重,9定稿,10退单;;;;(0,1,2状态下进度条啥都不显示,3显示一个初稿,4显示一个修改1,5显示一个修改2,6显示一个修改3,7显示一个修改4,8默认,9显示一个定稿)

